﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Diagnostics;

namespace Oprah
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        string[] Alphabets = new string[] { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" };
        public MainWindow()
        {
            InitializeComponent();
            
        }

        private void btnsignUp_Click(object sender, RoutedEventArgs e)
        {
            var s = new Signup();
            this.Hide();
            s.Show();
        }

        private void btnLogin_Click(object sender, RoutedEventArgs e)
        {
            //string password = "";

            //foreach (char pass in txtPassword.Password)
            //{
            //    password = password + pass;
            //}

            //try
            //{
            //    foreach (Account user in Account.users)
            //    {
            //        if (txtUsername.Text.Equals(user.username) && password.Equals(user.password))
            //        {
                        var s = new GamePage();
                        this.Hide();
                        s.Show();
                //    }
                //}
            //}
            //catch (Exception ex)
            //{
            //    MessageBox.Show(ex.Message, "invaild login and password!");
            //}
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //string s = "hello";
            //char[] letter = s.ToCharArray();

            //var shuffle = new Shuffler();
            //shuffle.Shuffle(Alphabets);

            //foreach (char c in letter)
            //{
            //    Debug.Write(c);
            //}
        }
    }
}
